import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

var state = {
  count: 1
}

var mutations = {
  incCount(state) {
    state.count++
  }
}

var getters = {
  doubleCount(state) {
    return state.count * 2
  }
}

var actions = {
  twoDouble() {

  }
}

const store = new Vuex.Store({
  state,
  mutations,
  getters,
  actions
})

export default store
